#!/bin/bash
# Author: xuthus
# Time: 2018.9.14
# Function: install and config golang environment

if [ $(id -u) != "0" ]; then
    echo "使用管理员权限执行本脚本是最佳选择！"
fi

. ./function.sh

while true
do
    echo "----------------------------------"
    echo "0) 安装golang环境"
    echo "1) 安装gopm跨墙"
    echo "2) 安装web框架"
    echo "3) 安装包"
    echo "4) 退出"
    echo "----------------------------------"
    read -p "输入操作编号：" func
    case $func in
        0)
        Install_Golang_Environment
        ;;
        1)
        Install_gopm
        ;;
        2)
        Install_Web_FrameWork
        ;;
        3)
        Install_Package
        ;;
        4)
        echo "操作取消"
        exit
        ;;
    esac
done